package com.zpark.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import lombok.extern.slf4j.Slf4j;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Slf4j
@Accessors(chain = true)
@ToString
public class Student {
    @Id
    @KeySql(useGeneratedKeys = true)
    private Integer stuId;
    private String stuName;
    private Integer stuAge;
    private String stuSex;
    private Date stuBirthday;
}
